package com.campus.service;

import com.campus.entry.CourseLearnUnit;
import com.campus.pojo.dto.CourseLearnUnitDto;
import com.campus.pojo.dto.StudentLearningUnitDto;

import java.util.List;

public interface CourseLearnUnitService {

    // 根据教师ID查询所有学习单元
    List<CourseLearnUnitDto> getCourseLearnUnitsByTeacherId(int teacherId);

    List<CourseLearnUnitDto> getCourseLearnUnitsByTeacherId(int teacherId, String titleName, Integer status);
    void updateState(Integer id,Integer status);
    void deleteUnit(Integer id);
    CourseLearnUnit getUnitById(Integer id);
    void updateUnit(CourseLearnUnit courseLearnUnit);
    void saveUnit(CourseLearnUnit courseLearnUnit);
    List<StudentLearningUnitDto> getUnitByStudent(Integer studentId);
}
